package design.pattern.FactoryMethod;

public interface BMW {

    void create();
}
class BMW520 implements BMW{
    @Override
    public void create() {
        System.out.println("create  BMW520");
    }
}
class BMW523 implements BMW{
    @Override
    public void create() {
        System.out.println("create  BMW523");

    }
}
